package com.yuxinyang.memory.admin.user.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.yuxinyang.memory.admin.common.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 用户登录表
 * </p>
 *
 * @author 余秀良
 * @since 2019-08-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class MemoryUserLogin extends BaseEntity implements Serializable {

    public static final String ID = "id";
    public static final String USER_ID = "user_id";
    public static final String ACCOUNT = "account";
    public static final String PASSWORD = "password";
    public static final String ACCOUNT_STATUS = "account_status";
    public static final String CREATE_TIME = "create_time";
    public static final String UPDATE_TIME = "update_time";
    public static final String REMARK = "remark";
    private static final long serialVersionUID = -5672458229279728243L;
    /**
     * 用户表id
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 用户登录账号
     */
    @TableField("account")
    private String account;
    /**
     * 用户登录密码
     */
    @TableField("password")
    private String password;
    /**
     * 0：正常，1：禁止登录
     */
    @TableField("account_status")
    private Boolean accountStatus;
}
